package org.finesys.common.websocket.entity;

import java.security.Principal;

/**
 * websocket用户信息存储
 */
public class WebSocketUser implements Principal {
    /**
     * 用户名称
     */
    private String userName;
    /**
     * token信息
     */
    private String token;

    public WebSocketUser() {
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String getName() {
        return userName;
    }
}
